package com.zhuss.car.db.dao.ext;

import com.zhuss.car.db.entity.Car;
import com.zhuss.bean.bo.car.car.SearchCarBo;
import com.zhuss.bean.vo.car.car.ListCarVo;
import com.zhuss.bean.vo.car.car.DetailCarVo;
import java.util.List;
import org.apache.ibatis.annotations.*;
import com.zhuss.car.db.dao.gen.*;

/**
 * @description: 车辆数据库Dao
 * @author: zhushanshuo
 * @create: Fri Dec 18 20:35:18 CST 2020
 **/

@Mapper
public interface CarDao extends CarMapper {

	void create(Car record);

	void delete(Car record);

	List<Car> listAll();

	List<Car> listById(@Param("carIdList") List<Long> carIdList);

	List<Car> listByName(@Param("plateNo") String plateNo);

	List<ListCarVo> list(SearchCarBo bo);

	Integer countList(SearchCarBo bo);

	DetailCarVo detail(@Param("carId") Long carId);

	int trainByCarId(@Param("carId") Long carId);

	List<ListCarVo> selectByType(SearchCarBo bo);

	Integer countCarByCompanyId(@Param("companyId") Long companyId, @Param("status") Integer status);



}
